<?php
/**
* File that sets view of the busstop select page.
* This file will be called with Ajax and {JafterID} and {JbuslineID} replaced by JQuery.
* @package busmap
*/
?>
<?php if(count($this->entries)){ ?>
	<table cellpadding=0 cellspacing=2 class="data-listing">
		<tr>
			<th>Nimi</th>
		</tr>
		<?php foreach ($this->entries as $entry): ?>
		<tr>
			<td onClick="clickBusstopSelect('{JafterID}', '{JbuslineID}', <?php echo $entry->id; ?>)"><a href="#" onClick="return false;" class="hoverableDatacell"><?php echo $this->escape($entry->name) ?></a></td>
		</tr>
		<?php endforeach ?>
	</table>
<?php }else{ ?>
	Hetkel bussipeatused puuduvad andmebaasis.
<?php } ?>